package cn.hh.basic.query;

import lombok.Data;

@Data
public class BasicQuery {
    /*第几页*/
    private Integer currentPage = 1;
    private Integer ecurrentPage = 1;
    /*每页多少条*/
    private Integer pageSize = 5;
    private Integer epageSize = 3;
    /*高级查询关键字*/
    private String keyword;
    /*抽屉的高级查询关键字*/
    private String keyname;
    /*抽屉数据查询*/
    private Integer id;
    /*计算当前页从哪里开始装数据*/
    public Integer getBegin(){
        return (this.currentPage-1)*this.pageSize;
    }
    public Integer getEbegin(){
        return (this.ecurrentPage-1)*this.epageSize;
    }
}
